
public class Neighbor {
	private int id;
	private int cost;
	private boolean neighbor;

	public Neighbor(int id, int i, boolean b) {
		this.setId(id);
		this.cost = i;
		this.setNeighbor(b);
	}

	public int getId() {
		return this.id;
	}

	public int getCost() {
		return this.cost;
	}

	@Override
	public boolean equals(Object obj) {
		Neighbor o = (Neighbor) obj;
		return this.getId() == o.getId();
	}

	public void setCost(int cost2) {
		this.cost = cost2;	
	}

	public void setNeighbor(boolean neighbor) {
		this.neighbor = neighbor;
	}

	public boolean isNeighbor() {
		return neighbor;
	}

	public void setId(int id) {
		this.id = id;
	}
}